package net.zoneland.knowledge.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class QaSatisfactionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public QaSatisfactionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("ID like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("ID not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andQueNameIsNull() {
            addCriterion("QUENAME is null");
            return (Criteria) this;
        }

        public Criteria andQueNameIsNotNull() {
            addCriterion("QUENAME is not null");
            return (Criteria) this;
        }

        public Criteria andQueNameEqualTo(String value) {
            addCriterion("QUENAME =", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameNotEqualTo(String value) {
            addCriterion("QUENAME <>", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameGreaterThan(String value) {
            addCriterion("QUENAME >", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameGreaterThanOrEqualTo(String value) {
            addCriterion("QUENAME >=", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameLessThan(String value) {
            addCriterion("QUENAME <", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameLessThanOrEqualTo(String value) {
            addCriterion("QUENAME <=", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameLike(String value) {
            addCriterion("QUENAME like", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameNotLike(String value) {
            addCriterion("QUENAME not like", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameIn(List<String> values) {
            addCriterion("QUENAME in", values, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameNotIn(List<String> values) {
            addCriterion("QUENAME not in", values, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameBetween(String value1, String value2) {
            addCriterion("QUENAME between", value1, value2, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameNotBetween(String value1, String value2) {
            addCriterion("QUENAME not between", value1, value2, "queName");
            return (Criteria) this;
        }

        public Criteria andReqIdIsNull() {
            addCriterion("REQID is null");
            return (Criteria) this;
        }

        public Criteria andReqIdIsNotNull() {
            addCriterion("REQID is not null");
            return (Criteria) this;
        }

        public Criteria andReqIdEqualTo(String value) {
            addCriterion("REQID =", value, "reqId");
            return (Criteria) this;
        }

        public Criteria andReqIdNotEqualTo(String value) {
            addCriterion("REQID <>", value, "reqId");
            return (Criteria) this;
        }

        public Criteria andReqIdGreaterThan(String value) {
            addCriterion("REQID >", value, "reqId");
            return (Criteria) this;
        }

        public Criteria andReqIdGreaterThanOrEqualTo(String value) {
            addCriterion("REQID >=", value, "reqId");
            return (Criteria) this;
        }

        public Criteria andReqIdLessThan(String value) {
            addCriterion("REQID <", value, "reqId");
            return (Criteria) this;
        }

        public Criteria andReqIdLessThanOrEqualTo(String value) {
            addCriterion("REQID <=", value, "reqId");
            return (Criteria) this;
        }

        public Criteria andReqIdLike(String value) {
            addCriterion("REQID like", value, "reqId");
            return (Criteria) this;
        }

        public Criteria andReqIdNotLike(String value) {
            addCriterion("REQID not like", value, "reqId");
            return (Criteria) this;
        }

        public Criteria andReqIdIn(List<String> values) {
            addCriterion("REQID in", values, "reqId");
            return (Criteria) this;
        }

        public Criteria andReqIdNotIn(List<String> values) {
            addCriterion("REQID not in", values, "reqId");
            return (Criteria) this;
        }

        public Criteria andReqIdBetween(String value1, String value2) {
            addCriterion("REQID between", value1, value2, "reqId");
            return (Criteria) this;
        }

        public Criteria andReqIdNotBetween(String value1, String value2) {
            addCriterion("REQID not between", value1, value2, "reqId");
            return (Criteria) this;
        }

        public Criteria andReqNameIsNull() {
            addCriterion("REQNAME is null");
            return (Criteria) this;
        }

        public Criteria andReqNameIsNotNull() {
            addCriterion("REQNAME is not null");
            return (Criteria) this;
        }

        public Criteria andReqNameEqualTo(String value) {
            addCriterion("REQNAME =", value, "reqName");
            return (Criteria) this;
        }

        public Criteria andReqNameNotEqualTo(String value) {
            addCriterion("REQNAME <>", value, "reqName");
            return (Criteria) this;
        }

        public Criteria andReqNameGreaterThan(String value) {
            addCriterion("REQNAME >", value, "reqName");
            return (Criteria) this;
        }

        public Criteria andReqNameGreaterThanOrEqualTo(String value) {
            addCriterion("REQNAME >=", value, "reqName");
            return (Criteria) this;
        }

        public Criteria andReqNameLessThan(String value) {
            addCriterion("REQNAME <", value, "reqName");
            return (Criteria) this;
        }

        public Criteria andReqNameLessThanOrEqualTo(String value) {
            addCriterion("REQNAME <=", value, "reqName");
            return (Criteria) this;
        }

        public Criteria andReqNameLike(String value) {
            addCriterion("REQNAME like", value, "reqName");
            return (Criteria) this;
        }

        public Criteria andReqNameNotLike(String value) {
            addCriterion("REQNAME not like", value, "reqName");
            return (Criteria) this;
        }

        public Criteria andReqNameIn(List<String> values) {
            addCriterion("REQNAME in", values, "reqName");
            return (Criteria) this;
        }

        public Criteria andReqNameNotIn(List<String> values) {
            addCriterion("REQNAME not in", values, "reqName");
            return (Criteria) this;
        }

        public Criteria andReqNameBetween(String value1, String value2) {
            addCriterion("REQNAME between", value1, value2, "reqName");
            return (Criteria) this;
        }

        public Criteria andReqNameNotBetween(String value1, String value2) {
            addCriterion("REQNAME not between", value1, value2, "reqName");
            return (Criteria) this;
        }

        public Criteria andCmpDnIsNull() {
            addCriterion("CMPDN is null");
            return (Criteria) this;
        }

        public Criteria andCmpDnIsNotNull() {
            addCriterion("CMPDN is not null");
            return (Criteria) this;
        }

        public Criteria andCmpDnEqualTo(String value) {
            addCriterion("CMPDN =", value, "cmpDn");
            return (Criteria) this;
        }

        public Criteria andCmpDnNotEqualTo(String value) {
            addCriterion("CMPDN <>", value, "cmpDn");
            return (Criteria) this;
        }

        public Criteria andCmpDnGreaterThan(String value) {
            addCriterion("CMPDN >", value, "cmpDn");
            return (Criteria) this;
        }

        public Criteria andCmpDnGreaterThanOrEqualTo(String value) {
            addCriterion("CMPDN >=", value, "cmpDn");
            return (Criteria) this;
        }

        public Criteria andCmpDnLessThan(String value) {
            addCriterion("CMPDN <", value, "cmpDn");
            return (Criteria) this;
        }

        public Criteria andCmpDnLessThanOrEqualTo(String value) {
            addCriterion("CMPDN <=", value, "cmpDn");
            return (Criteria) this;
        }

        public Criteria andCmpDnLike(String value) {
            addCriterion("CMPDN like", value, "cmpDn");
            return (Criteria) this;
        }

        public Criteria andCmpDnNotLike(String value) {
            addCriterion("CMPDN not like", value, "cmpDn");
            return (Criteria) this;
        }

        public Criteria andCmpDnIn(List<String> values) {
            addCriterion("CMPDN in", values, "cmpDn");
            return (Criteria) this;
        }

        public Criteria andCmpDnNotIn(List<String> values) {
            addCriterion("CMPDN not in", values, "cmpDn");
            return (Criteria) this;
        }

        public Criteria andCmpDnBetween(String value1, String value2) {
            addCriterion("CMPDN between", value1, value2, "cmpDn");
            return (Criteria) this;
        }

        public Criteria andCmpDnNotBetween(String value1, String value2) {
            addCriterion("CMPDN not between", value1, value2, "cmpDn");
            return (Criteria) this;
        }

        public Criteria andDeptDnIsNull() {
            addCriterion("DEPTDN is null");
            return (Criteria) this;
        }

        public Criteria andDeptDnIsNotNull() {
            addCriterion("DEPTDN is not null");
            return (Criteria) this;
        }

        public Criteria andDeptDnEqualTo(String value) {
            addCriterion("DEPTDN =", value, "deptDn");
            return (Criteria) this;
        }

        public Criteria andDeptDnNotEqualTo(String value) {
            addCriterion("DEPTDN <>", value, "deptDn");
            return (Criteria) this;
        }

        public Criteria andDeptDnGreaterThan(String value) {
            addCriterion("DEPTDN >", value, "deptDn");
            return (Criteria) this;
        }

        public Criteria andDeptDnGreaterThanOrEqualTo(String value) {
            addCriterion("DEPTDN >=", value, "deptDn");
            return (Criteria) this;
        }

        public Criteria andDeptDnLessThan(String value) {
            addCriterion("DEPTDN <", value, "deptDn");
            return (Criteria) this;
        }

        public Criteria andDeptDnLessThanOrEqualTo(String value) {
            addCriterion("DEPTDN <=", value, "deptDn");
            return (Criteria) this;
        }

        public Criteria andDeptDnLike(String value) {
            addCriterion("DEPTDN like", value, "deptDn");
            return (Criteria) this;
        }

        public Criteria andDeptDnNotLike(String value) {
            addCriterion("DEPTDN not like", value, "deptDn");
            return (Criteria) this;
        }

        public Criteria andDeptDnIn(List<String> values) {
            addCriterion("DEPTDN in", values, "deptDn");
            return (Criteria) this;
        }

        public Criteria andDeptDnNotIn(List<String> values) {
            addCriterion("DEPTDN not in", values, "deptDn");
            return (Criteria) this;
        }

        public Criteria andDeptDnBetween(String value1, String value2) {
            addCriterion("DEPTDN between", value1, value2, "deptDn");
            return (Criteria) this;
        }

        public Criteria andDeptDnNotBetween(String value1, String value2) {
            addCriterion("DEPTDN not between", value1, value2, "deptDn");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("STATUS is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(int value) {
            addCriterion("STATUS =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(int value) {
            addCriterion("STATUS <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(int value) {
            addCriterion("STATUS >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(int value) {
            addCriterion("STATUS >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(int value) {
            addCriterion("STATUS <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(int value) {
            addCriterion("STATUS <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(int value) {
            addCriterion("STATUS like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(int value) {
            addCriterion("STATUS not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("STATUS in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("STATUS not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(int value1, int value2) {
            addCriterion("STATUS between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(int value1, int value2) {
            addCriterion("STATUS not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CREATETIME is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CREATETIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATETIME =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATETIME <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATETIME >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATETIME >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATETIME <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATETIME <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATETIME in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATETIME not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATETIME between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATETIME not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andSessionIdIsNull() {
            addCriterion("SESSIONID is null");
            return (Criteria) this;
        }

        public Criteria andSessionIdIsNotNull() {
            addCriterion("SESSIONID is not null");
            return (Criteria) this;
        }

        public Criteria andSessionIdEqualTo(String value) {
            addCriterion("SESSIONID =", value, "sessionId");
            return (Criteria) this;
        }

        public Criteria andSessionIdNotEqualTo(String value) {
            addCriterion("SESSIONID <>", value, "sessionId");
            return (Criteria) this;
        }

        public Criteria andSessionIdGreaterThan(String value) {
            addCriterion("SESSIONID >", value, "sessionId");
            return (Criteria) this;
        }

        public Criteria andSessionIdGreaterThanOrEqualTo(String value) {
            addCriterion("SESSIONID >=", value, "sessionId");
            return (Criteria) this;
        }

        public Criteria andSessionIdLessThan(String value) {
            addCriterion("SESSIONID <", value, "sessionId");
            return (Criteria) this;
        }

        public Criteria andSessionIdLessThanOrEqualTo(String value) {
            addCriterion("SESSIONID <=", value, "sessionId");
            return (Criteria) this;
        }

        public Criteria andSessionIdLike(String value) {
            addCriterion("SESSIONID like", value, "sessionId");
            return (Criteria) this;
        }

        public Criteria andSessionIdNotLike(String value) {
            addCriterion("SESSIONID not like", value, "sessionId");
            return (Criteria) this;
        }

        public Criteria andSessionIdIn(List<String> values) {
            addCriterion("SESSIONID in", values, "sessionId");
            return (Criteria) this;
        }

        public Criteria andSessionIdNotIn(List<String> values) {
            addCriterion("SESSIONID not in", values, "sessionId");
            return (Criteria) this;
        }

        public Criteria andSessionIdBetween(String value1, String value2) {
            addCriterion("SESSIONID between", value1, value2, "sessionId");
            return (Criteria) this;
        }

        public Criteria andSessionIdNotBetween(String value1, String value2) {
            addCriterion("SESSIONID not between", value1, value2, "sessionId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}